package com.prs.crm.dao.oa.impl;

import java.util.List;

import org.hibernate.Criteria;

import com.prs.crm.dao.impl.BaseDaoImpl;
import com.prs.crm.dao.oa.HomePageTypeDao;
import com.prs.crm.domain.oa.HomePageType;

public class HomePageTypeDaoImpl  extends BaseDaoImpl<HomePageType> implements HomePageTypeDao{

	@Override
	public List<HomePageType> getAllPage() {
		Criteria criteria = this.getSession().createCriteria(HomePageType.class);
		List<HomePageType> r= criteria.list();
		if(r.size()!=0){
			return r;
		}else{
			return null;
		}
	}

}
